<?php
namespace app\api\validate;
use think\Validate;

class Operation extends Validate{
	public $message=[
    	'id.require'=>'id不存在请传id',
    	'focus_id.require'=>'请上传需要关注/取关的用户Id',
    	'text.require'=>'请输入要评论的内容',
    	'text.length'=>'评论内容长度在2-500节字区间',
    ];
    
   	public $rule=[
	   	'id'=>'require|number',
	   	'focus_id'=>'require|number',
	   	'text'=>'require|length:2,500',
   	];
    public $scene=[
    	'findNewsDetails'=>['id'],
    	'selectNewsComment'=>['id'],
    	'addComment'=>['id','text'],
    	'focus'=>['focus_id'],
    	'unFocus'=>['focus_id'],
    	'findAuctionDetails'=>['id'],
    	'payMargin'=>['id'],
    	'bidding'=>['id'],
    ];
    
}
?>